home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 101 / CD-ROM 101.iso / compl / maya5ple / Install_MayaPLE5_English.exe / Maya / Data1.cab / surfaceEditorProperties.mel < prev    next >
Encoding:
Text File  |  2003-07-17  |  2.4 KB  |  89 lines

  1. // Copyright (C) 1997-2002 Alias|Wavefront,
  2. // a division of Silicon Graphics Limited.
  3. //
  4. // The information in this file is provided for the exclusive use of the
  5. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  6. // and incorporate this code into other products for purposes authorized
  7. // by the Alias|Wavefront license agreement, without fee.
  8. //
  9. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  10. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  11. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  12. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  13. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  14. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  15. // PERFORMANCE OF THIS SOFTWARE.
  16. //
  17. //
  18. //  Alias|Wavefront Script File
  19. //  MODIFY THIS AT YOUR OWN RISK
  20. //
  21. //  Creation Date: Jan 30, 1999
  22. //
  23. //
  24. //  Description:
  25. //      These procs create the controls for the surface editor tool property
  26. //      sheet.  See also surfaceEditorValues.mel for procs that set the state
  27. //      of the property sheet.
  28. //
  29. //
  30. //  Input Arguments:
  31. //      None.
  32. //
  33. //  Return Value:
  34. //      None.
  35. //
  36.  
  37. proc surfaceEditorSetCallbacks( string $parent )
  38. //
  39. //  Description:
  40. //      Set the callbacks for all of the controls in the dialog.
  41. //      Modifying the context will force surfaceEditorValues() to be called
  42. //
  43. //
  44. {
  45.     setParent $parent;
  46.  
  47.     floatSliderGrp -e
  48.         -cc "curveEditorCtx -e -rts #1 `currentCtx`"
  49.         scaleField;
  50. }
  51.  
  52. global proc surfaceEditorProperties()
  53. //
  54. //  Description:
  55. //      This procedure builds the property sheet and assigns callbacks to
  56. //      its controls.  The state of the controls are set in surfaceEditorValues().
  57. //
  58. //
  59. {
  60.     string $parent = `toolPropertyWindow -q -location`;
  61.  
  62.     setUITemplate -pushTemplate OptionsTemplate;
  63.  
  64.     setParent $parent;
  65.  
  66.     columnLayout -adj true surfaceEditor;
  67.         frameLayout -collapsable true -collapse false
  68.             -l "Settings";
  69.  
  70.             columnLayout;
  71.  
  72.               $parent = `setParent -query`;
  73.               separator -style "none";
  74.  
  75.               floatSliderGrp -field true
  76.                   -label "Tangent Manip. Size"
  77.                   -min 0.1 -max 10.0 -fmn 0.01 -fmx 100.0 -v -5.0
  78.                   scaleField;
  79.  
  80.             setParent ..;
  81.            setParent ..;
  82.     setParent ..;
  83.  
  84.     setUITemplate -popTemplate;
  85.  
  86.     surfaceEditorSetCallbacks( $parent );
  87. }
  88.  
  89.